package com.hue.springcloud.controller;

import com.hue.springcloud.service.IMessageProvider;
import com.netflix.discovery.converters.Auto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MessageController {
    @Autowired
    private IMessageProvider iMessageProvider;

    @GetMapping("/message")
    public String message(){
        iMessageProvider.send();
        return "产生一个消息";
    }
}
